public class personTest {
    public static void main(String[] args) {
        //创建对象
        person p1 = new person();//初始化值为null
        p1.name = "张三";
        p1.setAge(18);
        p1.gender = "男";

        System.out.println(p1.getAge());

        p1.playGame();
        p1.eat();

        person p2 = new person();
        p2.name = "李四";
        p2.setAge(45);
        p2.gender = "男";

        p2.sleep();
        p2.study();
        System.out.println(p2.getAge());
    }
}
